package ooday02;

public class ExtendsTest {
    public static void main(String[] args) {
        /*
        Student zs=new Student("张三",25,"天庭","jsd2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();


        Teacher li=new Teacher("李四",24,"沈阳",6000);




        Doctor ww=new Doctor("王五",26,"大连");
    }

         */

        Student zs=new Student("张三",25,"天庭","jsd2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();


        Teacher li=new Teacher("李四",24,"沈阳",6000);




        Doctor ww=new Doctor("王五",26,"大连");
    }
}
